package com.szakul.pdf.viewer.dao.beans;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

public interface TreeDao {

	@Transactional
	int createLeaf(Leaf leaf);
	
	@Transactional
	int createNode(Node node);
	
	@Transactional
	void updateLeaf(Leaf leaf);
	
	@Transactional
	void updateNode(Node node);
	
	@Transactional
	List<Node> getAllNodes();
	
	@Transactional
	Leaf getLeafById(int id);
	
	@Transactional
	int getNodesCount();
	
	@Transactional
	List<Leaf> getNodeLeafs(Node node);
	
	@Transactional
	void deleteNode(Node node);
	
	@Transactional
	void deleteLeaf(Leaf leaf);
	
	
}
